package com.itheima.demo4InputStream;

import java.io.FileInputStream;
import java.io.InputStream;

public class FileInputStreamDemo2 {
    public static void main(String[] args) throws Exception{
        InputStream is=new FileInputStream("day03-file-io\\src\\zsx1");
//        一次性读取全部字节
        byte[] bytes=is.readAllBytes();
        System.out.println(new String(bytes));
    }
}
